check for last line