Optimization for shuffle

dig it or will this have issues with strings in legacy ie?
fixed that issue