fixed the duplicate method

fixed the duplicate method