added base query