fixing bug in PU subtraction