added logic around room creation