working on branching, behaves with no branches