refactor in operating system