mac processing function uncommented