clean up cnam before return