fix so no overlapping graphs