removed console.* and commented out code