switch unsigned long to uint32_t