changing to a readable stream