'atoi not declared' error has been fixed