remove console logs and unused code