erasing unuse code and couts