remove try and catch to improve performance