finishing the update regarding edges initialization