adding console.log to test conditional