adding option for max clusters