remove console.log's and reindented