finds data ranges