handle no results
changing to queueTag
organizing code