fixed all of Teds mistakes