polishing the execution code