unrolled clogMem and made minor tweak to sdisorder