rewriter the spx with module mode and check the res-clear