second method for getting current branch