remove console.log and add comments