clean empty branches