solution for atoi