submit task function working