chg size_t to uint64_t unsigned long in wrapper