before redoing code