graph now changes size better