sv1 and sv2 are now fully consistent. but changed sv2 to float64