fixing sc code