added new position calculation