regulated period?

i started masterbating and my period was always irregular,it would be 11 days one month and then 2 days the next month,i didn’t go on birth control,but i did masterbate and i realized that my periods were starting to be regular.now i have them for about 5-7 days,and i have stop masterbating now