Improved the redame file