slight change in boolean function