finish first draft of definition validator