fixing end line