upto functions