added unset to the arrays in resetParams