adding sample rate reading