removed template from end of filename