commented code which was throwing exception