improve tdoc snippet