compile error on try catch