fixed logic tristate