created the method for basic reordering and duplication