removed console log in catch block