removed the extra end