matrix showing
saving alg and model files