* validation optimized in the way to memory efficiency