create left and right branch