added missing variable to console log