make sample_rate optional