worked on shared prefs