started coding function Duplicate