accelerator refactoring for ribbons