merge back and forth