working on improved term_affected_by