inside closure on every file