fa_gen.m plus an extra background subtraction step