use int64_t instead of int to represent observations