implement struct bitfield usage for tags
Refactor bitfield usage