function of the imm