fixed svds, the code seems to work finally