add prototype for index merger