new func in shuffle