add smm distribution and thanks a lot for Yihui XIE's help