adding edges