cleanup of dead code
refactoring reseed