tested graphing. It works