simple change to atoi function.