modified query to display address