depollution of global scope and comment removal