added second argument to boolean function.