cleanup a code