spc code and input data