modified patient controller