optimised validator