added detaSeed variable