call resetVars on start