add logical and comparison operations (tested)