D3lite – algorithm