added shared preferences