log message added. example added in comments