update adjustPostion method