Mechanism for regulation of immune responses