merge can be IDs into times or vice versa