need to work out some kinks in boolean testing