modularized queries