updated task creation