fixing the graphs