query settings as functions for performance