fix to structured_data and removed console.log statements