better scrambling algorythm