refactoring devis.inc