complete insertion of nodes