removeLocalPref method added