removed try-except block