redesigned the log output