put limit in context when using index