change atoi to strtol etc.