position calculation implementation in progress