stream functions prototype corrections