script use to manipulate Preference data