adding console logs
removed typo