added tohtml, modified category