modified validator array example