adding an error on a max value