move result to local scope