limit the number of medcase at most 40