adding logic for node angles