added scaling option