draft of position calculation
merge