bug fix and all pointers filled for external edges