added minima & maxima for screen resolution