getrooms returning pointer