changed long long int to int64_t