convert writer to transform