add foldCase in controller