work with validate