refactor (win)