beginning cleanup to array