changed sampling rate to 2 seconds