small change in initializePrefs