added fields to edge class