convert bools to structs