static limit with scan queries working