cleanup for redoing