moved closer to correct tree node position calculation
final tree node position calculations added