partially working, funkiness with sample rate