program done! C_inv is not the same as S_inv...