makes query more flexible from server