updated duplicate bug