tidied up the log