goal create ending value sys.maxint check