new function for task file