add log for it's public method