adding new device and getting total devices