check for repetitive elements