adapt raw[]