updates files crash depreciate function