added minRun and maxRun