made max set size work