added auto increment to stream