Modernization of factories and enterprises