remove console.log and a small fix