remove try & catch in model