removed setVars function because I didnt end up using it