files array problem resolved