coverting to v3 from diagram