added devtype removal func