Using static var intead of reference