refactoring de exec