minor change of max! and min! interface