convert into spm module