controller has output only at the end of a case