added function for bitfield flags