cleaning bake function on validator