A vacuum ultraviolet photoionization study on the formation of methanimine (CH2NH) and ethylenediamine (NH2CH2CH2NH2) in low temperature interstellar model ices exposed to ionizing radiation.