Have not really looked at or tried your code but try doubling the @ sign to be @@ and see if it works.