now we have correct midstate