introduced critical max (didn't help though!)