custom nodefunction for custom nodetype