simplify upTo