adding device code