some sqc implementations