remove old unmasked em implementation from the main script