prepare room and window attribute