array cleanup