removed global room variable