validated code