simplify calculation of new node coordinates