renamed in stream to i & out stream to o