separated processor file from function