fixed the range of graph