fixed ending  lines for last time