tweaking numbers but need to figure out better way to throw away edges