adding the ability to merge