remove the dirty codes