regulates the immune system