remove unneeded devices