moving the log to the right place