added log for debug