adding B result in shared preferences.