refactor ok