modification of merging method : use of rbind