fixing shared preference untilities