Don't you define STATS array twice or more? If you have already defined STATS as an array or a variable with DIM or VAR, you cannot redefine an array (a variable) which have same name any more.