modified task init