flippable trinary devices - NOT DONE