why aren't the correct variables reaching the client