use node attributes instead of class variable