add type for task