remove end line