updates to have queries