removing double emit in join