add logic for rooms