merge traces