removed console.error logging