algorithm add comment