almost finished mergejoin