Merging of heads