add the nice upto function