added log to debug