work on validator