made scale param work.