query works
  memory leaks