retrieve depth-k elements