added upto, with passing test