with console log