fixed svd code to compile