change boolean logic