update max on graph if higher then 38