removed RandomAccessOutputStream from contstructior