try to implement reorder of rows