working on boolean logic