work on shared preferences