better min/max init for class map