scramble method