updated functionality for MAF processing