fixing the SDI stuff