add the log on function