before SharedPref class