add comment tree logic