add parse ecode function. return (z,element,ion)