normalize response matrix