functioning 4-state midictrw