optimized the entity query so it doesn't reproduce the ast every timegit add src/main!