debugged adding/removing a bit