refactoring is_newly_valid method