delete unused text, add extensions