kalman: some corrections