svd for swap

completed