residual avg file printing