updated set validate example