correct merge order