adding alg and param to model