added log function