fixed make_ends