refactor to target_ref