fix variable naming

change variable = _variable to this.variable = variable
refactor server