fixed last line to be added