started with riccati solving