begin work on queries