Modification of updateSGP