fixed some confusion about maximums and minimums