check the matrix inverse again. particularly the svd!