tidy up node classes.