added accessory removal function