remove from_buffer dead_code