only print at last line