error processing for dist parameters added