trying to make atoi work