moved the variable result to the include file