updated execution code