added log. restyled.