optimize whem there are enough chairs