spd update & selection function