removing unnecesary twigs