taking scipy out of spd