making sure edges and nodes return collections