added loops for case studies