increased query count and added status filter