fixed upper limits for minRGB