remove empty branches