adapted yui documentation