add position to nodes