save allow repetition in shared preferences