refactor scheduler to room schedule