added a check to see if strtoull failed