still fixing more errors in console log