Strange bug with the given edgedrawing tool has to be fixed. until then
code has been commented out