merges files