rez[1] -> rez[0] change