learn merging & branching concept