basic working atoi