Device should exists before add a Reparation
  clean  messy code