move ScaleData to separate class