synchronising the two branches