bug fix, updated scaling methods