move to int64_t for stack