update of analyzeSGP