add pad digits function to make better times