rooms functional