does it work for $conn? because that doesn't repeat the variable name above.