recorrect the log order