convert: convert renormalize_buffer to take an index