with booleans and bugs