added scaling parameters