idiot.=-1 instead of  -=1.