modified query to return more information