fixed broken duplication method