work done on branching fuctionality. #1