added simple boolean functionality