updating logging functions