modified strtol