added seeds and master algorithm