added log scaling