Spotting

Okay so I’m on the pill and I been on it for over a year now so my body is use to it , I’ve spotted in the beginning when getting use to it then after a month or two it went away and everything was normal while taking the pill, however I did noticed when I would miss the pill for 2 days in a row I would get my period on the 3rd day, lately I haven’t missed the pill but I been taking around the not usual time , and I started spotting , how can I make this spotting stop ?