if you're using my.pan -= 0; you should remove it altogether, it's subtracting 0 from itself unaffecting its value