S.m function

Internal Function