since its public method, add "log()" statement