fix range of dataset