try to generation code that can run function