add function run program