remove console.log and format indentation