Correlated variability of MKN 421 at X-ray and TeV wavelengths on time scales of hours