Detect the sets and items elements