add case for try