add mmm for html and rainbow mode