removed negative sign in updatePositionY