replace block with symbol
remove empty lines