with solution
removed console log