added code for merge and remove