updated method for reorder