added check to ensure merging objects to objects