added scaling to graphs