make end line up correctly