changed upper bound in color class