remove unnecessary empty lines