finished isvalidhash