working on shared preferences