branch selecting feature added