-updatePosition by Ivan