output the result to global as $result variable