v 0.1 of logic for branch