Why are so many query's repeated here ???
is there a bug ???