some advice for sgml function