fixed printing of isOptional