Rotation problems

im trying to make my movieclip rotate towards the mouse. but when you move the mouse left of the movieclip, it starts going different directions,

i put the code in the first frame of the mc