restructuring and D3 intro