correct change of coordinates