added 'add' and 'remove' functions to edge collections