adjusted behavior to random access file