change graph to move smooth