ironing out bugs with booleans