query not used anymore
code cleanup