finalized graph fixes

don’t update graph if 0 is inputed, small other fixes