changed target_field to affected_field