optimizing - before merge