moved var so server and client have it