changed minmax to proper maxs