function to regenerate sequences if additional changes are made