updated max value for init function for guage