fix wipe and add