whoops - used client side variable names. Now fixed.