example code added for case.