refactoring for rtl