seeds function and next gen on refresh