.m code for SID