refactor valid resolving condition