cleaned up atoi