making some progress on edges initialization