starting to figure out the branching