added init of edge