refactor not to use n+1
refactor to use @all_comments_hash for faster [o(1)] lookup