Masturbating

So basically a couple weeks ago i learnt how to but sometimes i feel dirty and bad afterwards and i know it’s not a bad thing but it’s because i watch porn and Idk how to do it without that and i know it’s bad does anybody know how to stop watching porn??