re calculate last postion.