implemented save node type