added log method