process files