added more console.log lines