unify adding nodes to head