remove type long, replace with int32_t