duplicate items before processing