changed ginv() to solve()