added task functionality