struggling with array clear?