okay just added a try-except to make it cleaner