ok, return label unless type. and what about when type is not nil? there are 2 conditions.