update case and case output