updating SP and SPNP