refactor valid