added function "try"