refactor nested comments