replaced atoi by strtol