force limit parameter to be int, and the min value is 1