remove function merge() and use extend() instead