removed unused merge functions