warn instead of raising error on value > maxval