getMaxValueWorking