apply separate logic to different files