improved the log