implemented reorderNet