way better plan definition + edge direction event corrected