add spm check in document