forgot to take out debug query code.