added extension methods for common queries