use the composite type to check