refine log message
remove unnecessary function