edit logic of demo scale method