ex_mem and id_ex added