added limit on number of processes