merge ref