refactoring...
a possible query optimization