reading ranges is almost working