rename and free entries