update code for spm2