renamed validator to descriptor