checks for merge method