with every query done, but not working