adjusting queries