added scaling before MDS