update try function