finished defining required/optional on the schema