delete an extra end