remove free end of branchs;