redo boolean logic