added vector inpur for parameters of EM models