updates fn with_term()