$result instead of $r