updated trycatching