kalman filter for the SPM