updating some queries