doc for spm