add logical operations