minor changes to the way SPMs are found