fix compute edges, TO DO: adjust variance values