dynamically mutate function bodies