update how file types are calculated