resetting the arrays on every get request