adding console log