use writeComment callback