adding try catch around responsive block