working on validator