processes files