modified sc code