task function to start the task by default.