cleanup files array