delete duplicate method