Study provides new insights into how immune system responds