hash codes for free-ids and bound-ids