added log for debugging