removing end graph - doing by hand