add max size of candidates