Modernization of CNC machines