worked on shared prefs, not done yet so left commented out