add try catch block to model method