using an intermediate storage device