use an int as type for limit