added maxLimit