fix a context error, remove console.logs