changed visibilty; added log statement