before using nsuserdefaults