added a method to remove from connected peers