added methods to classNode