TRIVIAL: add comment to explain the algorithm