tasks to ntasks