implemented saving PMX model