added a try block