room flow optimization