header and comments removal