made n_params() explicit instead of depending on priors