[FOLD] create functions within run