fixed randrw