add add_emat method