merge with head