removing unnecessary empty lines