remove console logs and fix formatting