cleaning up usage of ham_size_t