modified for sped3.