fixed insert. last switch block wasnt assigning the node properly