scam: change ring_buffer to 1d