make the run result part to be a function