set assignedType func