changed server var code