cleaning the branch