use int instead of long for sublime text 3 compatibility