added charlies standard full-length validation code