changed return type of duplicate