added log calls