added log in profile method