"correced bug when going y < 0"