prepared code for different list format
merge