residual output only for MDP and DP modes (saving time)