changing errors on alg model, syntax