corrected table name (edges -> edge)