modified task to use new files object