modified task end task