Clean up result array