raw -> format