removed an extra end