refactoring, replaced OpenStruct with InvalidDate object