branching almost works