adding indirection for sm