work with validator