use __contains__ for checking TYPE in NAME