add try catch on line 90