simplified a console log