final queries that do the job