Revert "revert back to working version"

This reverts commit efa07a53e183d9b8bec211f12539c2cbc3e80a2f.
Revert "remove seed"

This reverts commit 95878820901f2f4595bfd2f7716f128e62c7ded1.
Revert to 9587
code fix