corrected maxratio and minratio