modified purge pipeline for maf spectrum