fixed getNewPosition