added a query when getting rooms