atoi change for compatibility