all arrays are freed after use