use int64 type instead of ulonglong