Revised task0 to fulfil its functionality in a more accurate way