entity merge