changed query to return label