extract room_id method