stripping out D3 selections