change node type