changed clock freqency to 24 Mhz